package com.commerce.order.feign;

import com.commerce.common.entity.Addresses;
import com.commerce.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 地址服务Feign客户端
 */
@FeignClient(name = "commerce-user-service")
public interface AddressFeignClient {

    /**
     * 根据ID获取地址详情
     */
    @GetMapping("/api/addresses/{id}")
    Result<Addresses> getAddressById(@PathVariable("id") Long id);
}
